<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<t:wrapper title="${title}">
	<jsp:body>
		<div id="navigation">
			<a href="javascript:history.back()" >&laquo; <spring:message code="content.general.back" /></a>
		</div>
		<c:choose>
			<c:when test="${feedback != null}">
				${feedback}<br />
			</c:when>
		</c:choose>
		<form action="edit" method="post">
			<label><spring:message code="progresstest.create.description" /></label>
			<input type="text" name="description" value="${ProgressTest.getDescription()}" />
			<label></label>
			<button type="submit"><spring:message code="progresstest.edit.button" /></button>
			<label></label>
			<button type="button" onclick="location.href='create_question'"><spring:message code="progresstest.edit.add_question" /></button>
		</form>
		<br /><spring:message code="progresstest.edit.questions" /><br />
		<ul>
			<c:forEach items="${Questions}" var="question">
				<li>- <a href="edit_question">${question.question}</a> <a href="remove_question/${question.id}">X</a></li>
			</c:forEach>
		</ul>
	</jsp:body>
</t:wrapper>